import { CHANNELS_GET } from '../constants'

export default function channels(state = [], action) {
  switch (action.type) {
    case CHANNELS_GET:
      // dispatch({type: CHANNELS_GET, payload: 后端返回的数据})
      return action.payload
    default:
      return state
  }
}
